package com.baizhi.ems_thymeleaf.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/demo")
public class IndexController {

    @RequestMapping("/demo")
    public String demo(Model model){
        model.addAttribute("msg","hahahahahha");
        return "demo";
    }

    @RequestMapping("/login")
    public String login(Model model){
        model.addAttribute("msg","hahahahahha");
        return "login";
    }

    @RequestMapping("/regist")
    public String regist(Model model){
        model.addAttribute("msg","hahahahahha");
        return "regist";
    }

}
